home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3142 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: sundog.tiac.net!usenet
  2. From: dmorin@tiac.net (Duane Morin)
  3. Newsgroups: comp.lang.c
  4. Subject: BORLAND Floating Point emulation question
  5. Date: Fri, 26 Jan 1996 14:29:45 GMT
  6. Organization: The Internet Access Company
  7. Message-ID: <4eaoa7$3cf@sundog.tiac.net>
  8. NNTP-Posting-Host: 206.119.56.19
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. Hi,
  12.  
  13. Apologies for the compiler-specific question, but this is really the
  14. most appropriate newsgroup I could find.  I'm compiling up some stuff
  15. using Borland 4.5 (pure C, no C++) to put onto an embedded system.
  16. Problem - the embedded system has no math co-processor, so we need to
  17. do floating point emulation.
  18.  
  19. Microsoft's compiler solved this nicely with an 'alternate math'
  20. option that didn't ever bother checking for the existence of a math
  21. chip, it just called some functions to do the math. Perfecto.  Good
  22. speed, too.
  23.  
  24. But we may need to use Borland.  Borland seems to only have one
  25. emulation option, and that generates software interrupts that I really
  26. can't use.  (I step into the interrupt and my program goes off into
  27. nevernever land.  I don't even want to get into writing my own
  28. interrupt handlers, etc...)
  29.  
  30. Am I right in this statement about Borland?  Does it have the
  31. equivalent of Microsoft's "alternate math" support?  How impossible
  32. would it be to convince Borland to use somebody else's math package
  33. (say, Microsoft's?)
  34.  
  35. Thanks for any help,
  36.     Duane
  37.  
  38. ========================================================
  39. Views and opinions expressed above are mine and do not 
  40. necessarily reflect those of my employer.
  41. http://www.tiac.net/users/dmorin/ <-- A real "home" page
  42. ========================================================
  43.  
  44.